package io.jee.runshan.controller.web;

import io.jee.runshan.domain.QiyeMessageHistory;
import io.jee.runshan.service.IQiyeMessageHistoryService;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping("/web/qiye/message/")
public class WebQiyeMessageController {
	@Resource
	private IQiyeMessageHistoryService messageHistoryService;

	
	@RequestMapping(value = "/detail")
	public ModelAndView ajaxSend(@RequestParam(required = true) Integer id) {
		QiyeMessageHistory message = messageHistoryService.get(id);
		return new ModelAndView("/web/qiye/message/detail").addObject("message", message);
	}
	
}
